package com.itheima;

import java.util.Scanner;

public class tist1 {
    public static void main(String[] args) {
        Scanner sc= new Scanner(System.in);
        System.out.println("请输入第一个整数");
        int a = sc.nextInt();
        System.out.println("请输入第二个整数");
        int b = sc.nextInt();
        System.out.println("请输入第三个整数");
        int c = sc.nextInt();
        //最大值
        int max = getMax(a, b, c);
        System.out.println("最大值为"+max);
    }
    public static int getMax(int a,int b,int c){
        int max=a>b?a:b;
        int temp=max>c?max:c;
        return temp;
    }
}
